-
-
Couldn't load subscription status.
- Fork 871
add server/location_acl argument #1491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
use include directive to include server/location ACL file from nginx_conf_dir/conf.d/ dir to not repeat allow/deny lists for every location server/location block
nginx::resource::location is a typethat may have no external impact to Forge modules. nginx::resource::server is a typethat may have no external impact to Forge modules. This module is declared in 9 of 578 indexed public
|
|
ping |
1 similar comment
|
ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Please add some units tests for this change
| Optional[Enum['any', 'all']] $location_satisfy = undef, | ||
| Optional[Array] $location_allow = undef, | ||
| Optional[Array] $location_deny = undef, | ||
| Optional[String] $location_acl = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose the name can't be an empty string
| Optional[String] $location_acl = undef, | |
| Optional[String[1]] $location_acl = undef, |
Also maybe the user must be able to overwrite the default path nginx::conf_dir/conf.d ?
| Variant[Array[Stdlib::Absolutepath], Stdlib::Absolutepath] $listen_unix_socket = '/var/run/nginx.sock', | ||
| Optional[String] $listen_unix_socket_options = undef, | ||
| Optional[Enum['any', 'all']] $location_satisfy = undef, | ||
| Optional[String] $server_acl = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here:
| Optional[String] $server_acl = undef, | |
| Optional[String[1]] $server_acl = undef, |
Pull Request (PR) description
conf.d/name.aclACLs to server/location blocks to not repeatallow/denyrules multiple times.aclfile) withallow/denyrules in specific block (denyrule will be the last)